from ultralytics import YOLO
from ultralytics import RTDETR
from ultralytics import FastSAM

# Load a pretrained YoLov8n model
model = YOLO('yolov8s.pt')
# model = YOLO('yolov8n.pt')
# model = YOLO('yolov8n-seg.pt')
# model = YOLO('yolov8n-pose.pt')
# model = RTDETR('rtdetr-l.pt')
# model = FastSAM('FastSAM-s.pt')  # or FastSAM-x.pt
model.info()
# Run inference on the source
results = model.track(source="test_3.mp4", show=True, conf=0.4, save=True) # generator of Results objects


